package com.xiaowen.codeData.dto;

import com.google.common.collect.Lists;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CodeDataDTO implements Serializable {
    private Integer id;

    /**
     * 项目id
     */
    private Integer projectId;

    /**
     * 层级
     */
    private Integer level;

    /**
     * 编码code
     */
    private Integer code;

    /**
     * 编码名称
     */
    private String name;

    /**
     * 父code
     */
    private Integer parentCode;

    /**
     * 类型 1:数据  2:类型
     *
     */
    private Integer type;

    private Boolean deleteFlag;

    private Date createTime;

    private Date updateTime;

    private Integer createUser;

    private Integer sort;

    //子集
    private List<CodeDataDTO> children = Lists.newArrayList();
}
